package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2021-09-17
 */
@Data
@DbTable(tableName = "t_iot_device_irrigation_log")
public class IotDeviceIrrigationLog extends BaseEntity {
        /**
     * 设备编号
     */
    @DbTableField(columnName = "c_device_code", dbType = DbTypeEnum.VARCHAR)
    public String deviceCode ;

    /**
     * 数据时间
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 1路喷灌状态(N:正常/D:异常)
     */
    @DbTableField(columnName = "c_g10001flag", dbType = DbTypeEnum.VARCHAR)
    public String g10001flag ;

    /**
     * 1路喷灌开关状态(1:开/0:关)
     */
    @DbTableField(columnName = "c_g10001rtd", dbType = DbTypeEnum.VARCHAR)
    public String g10001rtd ;

    /**
     * 2路喷灌状态(N:正常/D:异常)
     */
    @DbTableField(columnName = "c_g10002flag", dbType = DbTypeEnum.VARCHAR)
    public String g10002flag ;

    /**
     * 2路喷灌开关状态(1:开/0:关)
     */
    @DbTableField(columnName = "c_g10002rtd", dbType = DbTypeEnum.VARCHAR)
    public String g10002rtd ;

    /**
     * 3路喷灌状态(N:正常/D:异常)
     */
    @DbTableField(columnName = "c_g10003flag", dbType = DbTypeEnum.VARCHAR)
    public String g10003flag ;

    /**
     * 3路喷灌开关状态(1:开/0:关)
     */
    @DbTableField(columnName = "c_g10003rtd", dbType = DbTypeEnum.VARCHAR)
    public String g10003rtd ;

    /**
     * 1路土壤墒情状态(N:正常/D:异常)
     */
    @DbTableField(columnName = "c_a01097flag", dbType = DbTypeEnum.VARCHAR)
    public String a01097flag ;

    /**
     * 1路土壤墒情(%)
     */
    @DbTableField(columnName = "c_a01097rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal a01097rtd ;

    /**
     * 2路土壤墒情状态(N:正常/D:异常)
     */
    @DbTableField(columnName = "c_a01098flag", dbType = DbTypeEnum.VARCHAR)
    public String a01098flag ;

    /**
     * 2路土壤墒情(%)
     */
    @DbTableField(columnName = "c_a01098rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal a01098rtd ;

    /**
     * 3路土壤墒情状态(N:正常/D:异常)
     */
    @DbTableField(columnName = "c_a01099flag", dbType = DbTypeEnum.VARCHAR)
    public String a01099flag ;

    /**
     * 3路土壤墒情(%)
     */
    @DbTableField(columnName = "c_a01099rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal a01099rtd ;


}
